cmake_minimum_required(VERSION 3.4.1)  # for example

find_library( # Defines the name of the path variable that stores the
              # location of the NDK library.
              log-lib

              # Specifies the name of the NDK library that
              # CMake needs to locate.
              log )



add_library( native_add

             # Sets the library as a shared library.
             SHARED

             # Provides a relative path to your source file(s).
             ../common_native/native_add.cpp )

target_link_libraries( # Specifies the target library.
                       native_add

                       # Links the log library to the target library.
                       ${log-lib} )